/*
Copyright 2010 Iain Surgey.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  

See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.

*/
int pcx_width, pcx_height;

#define	ERR_FATAL	0		// exit the entire game with a popup window
#define	ERR_DROP	1		// print to console and disconnect from game
#define	ERR_QUIT	2		// not an error, just a normal exit

#define	PRINT_ALL		0
#define PRINT_DEVELOPER	1	// only print when "developer 1"

#__body__

private function Sys_Error(err : Int,msg : String) {
	trace(msg);
	Memory.getI32(-1);
}

private function Con_Printf(err : Int,msg : String) {
	trace(msg);
}

private function write(msg : String) {
	scrtxt.text += msg+"\n";
	scrtxt.setTextFormat(txformat);
}
